-- GENERATED SPELL FOR [Bloodfalcon] --


function spell0_18155(pUnit, Event) --@Bloodburn,n/a--
pUnit:FullCastSpellOnTarget(34856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18155', 20282, 1)
end

function spell1_18155(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(32323,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18155', 2264, 1)
end

function spell2_18155(pUnit, Event) --@Swoop,n/a--
pUnit:FullCastSpellOnTarget(18144,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18155', 2267, 1)
end

function Sorts_18155(pUnit, Event)
local choix_sorts_18155 = math.random(0, 2)
if choix_sorts_18155 == 0 then
pUnit:RegisterEvent('spell0_18155', 1, 1)
end
if choix_sorts_18155 == 1 then
pUnit:RegisterEvent('spell1_18155', 1, 1)
end
if choix_sorts_18155 == 2 then
pUnit:RegisterEvent('spell2_18155', 1, 1)
end
end

function mob18155_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18155', math.random(1500, 3000), 1)
end

function mob18155_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18155_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18155_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18155, 1, 'mob18155_Action')
RegisterUnitEvent(18155, 2, 'mob18155_Leave')
RegisterUnitEvent(18155, 3, 'mob18155_Kill')
RegisterUnitEvent(18155, 4, 'mob18155_Die')
